<div class="contents">
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
    <li ng-if="pType=='06'"><a href="#/pevcorder/list">股权基金订单列表</a></li>
    <li ng-if="pType!='06'"><a href="#/order/list">信托资管订单列表</a></li>
    <li class="active">{{item.oPName}}</li>
    <li class="active">订单详情</li>
  </ol> 
  
  <form class="form-horizontal" role="form" name="form" ng-submit="save()" novalidate>
  <table class="table table-striped table-bordered">
    <tbody> 
      <tr><td width="150">订单ID</td> <td >{{item.orderId}}</td> </tr>
      <tr><td width="150">订单号</td> <td >{{item.oCode}}</td> </tr>
      <tr><td >订单金额</td> <td >{{item.oAmount | moneyRender}}</td> </tr>
      <tr><td>当前状态</td> <td class="order-status-{{item.oStatus}}" >{{item.oStatus | orderStatusRender}}</td> </tr>
      <tr><td >产品简称</td> <td ><a href="#/product/view?id={{item.oProjectId}}">{{item.oPName}}</a></td></tr>
      <tr><td>理财师</td><td ><a href="#/fa/view?id={{item.oFAId}}">{{item.oULoginName}}</a></td></tr>
      <tr><td>客户姓名</td> <td >{{item.oCName}}</td> </tr>
      <tr><td>预约时间</td> <td >{{item.createDate | date:'yyyy-MM-dd HH:mm'}}</td> </tr>
      <tr><td>处理时间</td> <td >{{item.updateDate | date:'yyyy-MM-dd HH:mm'}}</td> </tr>
      <tr><td>订单备注</td> <td >{{item.oRemark}}</td> </tr>
      <tr><td>核心价</td> <td >{{item.oCorePrice | profitRender}}</td> </tr>
      <tr><td>核心返佣额</td> <td >{{item.oCoreRebate | moneyRender:1:1}}</td> </tr>
      <tr><td>成本价</td> <td >{{item.oCostPrice | profitRender}}</td> </tr>
      <tr><td>成本返佣额</td> <td >{{item.oCostRebate | moneyRender:1:1}}</td> </tr>
      <tr><td>机构价</td> <td >{{item.oSellingPrice | profitRender}}</td> </tr>
      <tr><td>机构返佣额</td> <td >{{item.oSellingRebate | moneyRender:1:1}}</td> </tr>
      <tr><td>挂网价</td> <td >{{item.oRebateRate | profitRender}}</td> </tr>
      <tr><td>挂网返佣额</td> <td >{{item.oRebateAmount | moneyRender:1:1}}</td> </tr>
      <tr ng-if="item.oTransactionPrice"><td>成交价</td> <td >{{item.oTransactionPrice | profitRender}}</td> </tr>
      <tr ng-if="item.oTransactionRebate"><td>成交返佣额</td> <td >{{item.oTransactionRebate | moneyRender:1:1}}</td> </tr>
      
      <tr ng-if="isShowTransactionPrice(item.oStatus)"><td>成交价</td> <td >
        <div class="form-group" ng-class="{'has-error':form.oTransactionPrice.$invalid}">
          <div class="col-sm-2">
            <input type="text" class="form-control" placeholder="成交价" name="oTransactionPrice" ng-model="review.oTransactionPrice" required="required" only-num ng-pattern="/^\d{1,}\.?\d{0,2}$/"><span class="unit">%</span>
          </div>
        </div>
      </td> </tr>
      <tr ng-if="isShowTransactionPrice(item.oStatus)"><td>成交返佣额</td> <td >{{(review.oTransactionPrice * item.oAmount / 100) | moneyRender:1:1}}</td> </tr>
      <tr ><td>订单是否有效</td> <td class="order-defriend-status-{{item.oDefriendStatus}}">{{item.oDefriendStatus | orderDefriendStatusRender}}(百万冲十亿活动状态)</td> </tr>

      <tr><td></td><td>
          <div  class="btn btn-primary" ng-click="process()" ng-disabled="!(item.oStatus | orderNextStatusRender)">{{item.oStatus | orderNextStatusTextRender}}</div>
          <div  class="btn btn-primary" ng-click="applyFail()" ng-if="item.oStatus == '110'">预约失败</div>
          <div  class="btn btn-primary" ng-click="cancel()" ng-if="item.oStatus < '250' && item.oStatus != '140'">取消订单</div>
          <div  class="btn btn-warning" ng-click="process(220)" ng-if="item.oStatus == '210'" ng-confirm-click="请确认已得到理财师的同意,并代之操作'已签约打款'?">已签约打款</div>
          <div  class="btn btn-warning" ng-click="process(330)" ng-if="item.oStatus == '320'" ng-confirm-click="请确认已得到理财师的同意,并代之操作'确认返佣'?">确认返佣</div>
          <div  class="btn btn-primary" ng-click="avail(item.oDefriendStatus == '2' ? '1' : '2')" >{{item.oDefriendStatus == "2" ? "标识为有效订单" : "标识为无效订单"}}</div>
      </td></tr>
    </tbody>
  </table> 
  </form>
</div>
